package utils

import "strconv"

// prefixFollowee 构造 redis key的前缀
const prefixFollowee = "followee"

// prefixFollower 构造 redis key的前缀
const prefixFollower = "follower"

// split 分隔符
const split = ":"

// GetFolloweeKey 用户关注对象的key
func GetFolloweeKey(userId int64) string {
	return prefixFollowee + split + strconv.FormatInt(userId, 10)
}

// GetFollowerKey 对象拥有粉丝的key
func GetFollowerKey(toUserId int64) string {
	return prefixFollower + split + strconv.FormatInt(toUserId, 10)
}
